﻿// C:\Users\Jorge\Documents\Visual Studio 2010\Projects\C#
//   \LIB\SignalGenLib\TimeMagnitude.cs
//
// Class to create (time, magnitude) pairs.
//
// Programmer:  Jorge L. Orejel
//
// Last update

using System;

namespace SignalGenLib
{
   /// <summary>Class to encapsulate one data point of a digital signal. 
   /// </summary>
   public class TimeMagnitude
   {
      public double Time,      // Time (in seconds) of signal magnitude generation. 
                    Magnitude; // Signal magnitude in volts.

      public TimeMagnitude( double time, double magnitude )
      {
         Time = time; Magnitude = magnitude;
      }

      public TimeMagnitude Copy()
      {
         return new TimeMagnitude( this.Time, this.Magnitude );
      }// Copy
   }// TimeMagnitude (class)
}// SignalGenLib (namespace)
